package com.onesports.intelligent.k12.polarlight.domain.dto.course;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author FPH
 * @since 2022年7月9日15:55:09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "课程分类")
public class CourseClassifySaveOrUpdateDTO {

    @ApiModelProperty(value = "修改的ID")
    private String id;

    @NotBlank(message = "分类名称不可为空")
    @ApiModelProperty(value = "分类名称")
    @Length(max = 50,message = "长度不可超出50")
    private String classifyName;
}
